package ld.oauth.blog.service.question.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import ld.oauth.blog.mapper.question.QuestionCategoryMapper;
import ld.oauth.blog.model.po.question.QuestionCategory;
import ld.oauth.blog.service.question.QuestionCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ld
 * @since 2022-09-25
 */
@Service
public class QuestionCategoryServiceImpl extends ServiceImpl<QuestionCategoryMapper, QuestionCategory> implements QuestionCategoryService {


    @Autowired
    private QuestionCategoryMapper questionCategoryMapper;

    @Override
    public int removeCategoryIdsByQuestionId(Integer questionId) {
        return questionCategoryMapper.removeCategoryIdsByQuestionId(questionId);
    }

    @Override
    public int removeLabelsIdsByQuestionId(Integer questionId) {
        return questionCategoryMapper.removeLabelsIdsByQuestionId(questionId);
    }
}
